-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #3865: using just a single builder #3931
Conversation
462d82d
to
930cada
Compare
* <pre> | ||
* { | ||
* @code | ||
* Config configFromBuilder = new ConfigBuilder(Config.empty()) | ||
* // ... | ||
* .build(); | ||
* } | ||
* </pre> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So my assumption is incorrect...
#3913 (comment)
We need to change the formatter configuration to prevent this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a commit do this. It's org.eclipse.jdt.core.formatter.comment.format_source_comment = false that we need. However by itself that didn't seem to work for me. So I imported/exported a full config and that seemed to work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The correct option is org.eclipse.jdt.core.formatter.comment.format_source_code
, which is working now: https://github.com/fabric8io/kubernetes-client/runs/5462546383?check_suite_focus=true
SonarCloud Quality Gate failed. |
Description
Removes the use of the OpenShiftClientBuilder and documents the use of KubernetesClientBuilder. Uses the same reflection strategy as KubernetesResourceUtil, but I didn't create a utility method for it just yet.
So the only odd man out is HttpClientUtils.createHttpClient since it only uses the thread context classloader - but I believe that is ok for now as at worst all someone would need to do is set an appropriate context class loader or set the httpclient.factory on the client builder. We should be able in subsequent releases move the logic from HttpClientUtils to the Kubernetes client factory to keep all in one place.
Depending upon the outcome of #3922 we can probably add a build(Class) shortcut for build().adapt(Class).
This also builds upon 0ca1325 to change OpenShiftConfig to just a decorator on a base config - no state can be lost if an openshiftconfig is inadvertently converted to base config.
Type of change
test, version modification, documentation, etc.)
Checklist